using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public class _OpenEvent
{
	public _OpenEvent()
	{
        // Default Constructor
	}
	
	public _OpenEvent(string eventName)
	{
        // Custom Constructor used to populate data from the database.
        WebServiceApplication.WebService webService = new WebServiceApplication.WebService();
        _OpenEvent data = webService.getSearchedEvent(eventName);
        if (data != null)
        {
            this.eventName = data.eventName;
            this.eventAvailable = data.eventAvailable;
        }
	}
	
	// Variables
    public string eventName { get; set; }
    public bool eventAvailable { get; set; }
}